<%-- 
    Document   : addUser
    Created on : May 21, 2012, 3:06:55 PM
    Author     : ciummo
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="/DGestWebServer/css/dgest.css"/>
        <title>Inserimento Nuovo Utente</title>
    </head>
    <body>
        <%@ include file="../adminDialogBar.jspf" %>
        
        


        <h1>Inserimento Nuovo Utente</h1>
        <div class="error">
            <html:errors />
        </div>
        <html:form action="User?method=submitUser&func=new" method="POST" enctype="multipart/form-data">
             
            <table class="center"><tbody>

                <div id="OrderInformation">
                    
                    <tr><td><h2>Informazioni Utente</h2></td></tr>
                    
                    <tr>
                        <td>Nome Utente</td>
                        <td><html:text name="UserActionForm" property="username" maxlength="20" /></td>
                    </tr>

                    <tr>
                        <td>Password</td>
                        <td><html:password name="UserActionForm" property="password" /></td>
                    </tr>                    
                    
                    <tr>
                        <td>Nome Reale</td>
                        <td><html:text name="UserActionForm" property="nome" /></td>
                    </tr>
                    <tr>
                        <td>Cognome</td>
                        <td><html:text name="UserActionForm" property="cognome" /></td>
                    </tr>
                    <tr>
                        <td>Cod. Fiscale</td>
                        <td><html:text name="UserActionForm" property="codFiscale" /></td>
                    </tr>
                    <tr>
                        <td>Email</td>
                        <td><html:text name="UserActionForm" property="email" /></td>
                    </tr>
                    <tr>
                        <td>Telefono</td>
                        <td><html:text name="UserActionForm" property="telefono" /></td>
                    </tr>
            
                    <tr>
                        <td>
                            <html:select property="ruolo" >
                            <html:option value="0">Ruolo</html:option>
                        <html:optionsCollection name="UserActionForm" property="roleList" label="title" value="title"/>
                            </html:select></td>
                    </tr>
                    
                    
                    
                    
                    <html:hidden name="UserActionForm"  property="stato" value="1"></html:hidden>
                    
                    <tr>
                        <td>
                            <html:submit>
                                Submit
                            </html:submit>

                            <html:cancel>
                                Cancel
                            </html:cancel>
                        </td>
                    </tr>
                    
                    
                    
            </table></tbody>
                    
        </html:form>
        
    </body>
</html>
